home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / sxwork2.lzh / サンプル基礎編 / 文字列描画 / TEXTWR.H < prev   
Text File  |  1994-03-10  |  1KB  |  46 lines

  1. /******************************************************************************
  2.  *    textwr.h:    textwr.c用ヘッダファイル
  3.  ******************************************************************************
  4.  *    Workroom SX-68K Sample Program Copyright 1994 SHARP
  5.  *
  6.  *    定数定義
  7.  */
  8. /* ウィンドウタイトル */
  9. #define WINTITLE    ((_LASCII) "\x0c文字列の描画")
  10.  
  11. /* ウィンドウサイズ */
  12. #define WIN_H        300        /* ウィンドウの幅    */
  13. #define WIN_V        120        /* ウィンドウの高さ    */
  14.  
  15. /* 文字列の表示位置 */
  16. #define STR1_X        18        /* X座標        */
  17. #define STR1_Y        18        /* Y座標        */
  18.  
  19. /* イベントマスク */
  20. #define EVENTMASK    (EM_MSLDOWN | EM_UPDATE | EM_ACTIVATE | EM_SYSTEM1 | EM_SYSTEM2)
  21. /*
  22.  *    構造体宣言
  23.  */
  24. typedef struct ComVal {            /* 共通変数        */
  25.     Window *windowPtr;        /* ウィンドウポインタ    */
  26.     BOOLEAN activeFlag;        /* アクティブフラグ    */
  27.     TsEvent event;            /* イベントレコード    */
  28.     int eventMask;            /* イベントマスク    */
  29.     int errorCode;            /* エラーコード        */
  30.     BOOLEAN endFlag;        /* 終了フラグ        */
  31. } ComVal;
  32. /*
  33.  *    関数プロトタイプ
  34.  */
  35. /* textwr.c */
  36. BOOLEAN init(ComVal *);
  37. BOOLEAN createWindow(ComVal *);
  38. void msLDownEvent(ComVal *);
  39. void keyDownEvent(ComVal *);
  40. void updateEvent(ComVal *);
  41. void drawGraph(ComVal *);
  42. void activateEvent(ComVal *);
  43. void systemEvent(ComVal *);
  44. void showErrDialog(ComVal *);
  45. void endProc(int, ComVal *);
  46.